﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="CDmDjkMessageSystem" targetNamespace="http://tempuri.org/CDmDjkMessageSystem.xsd" xmlns:mstns="http://tempuri.org/CDmDjkMessageSystem.xsd" xmlns="http://tempuri.org/CDmDjkMessageSystem.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="dijiekeConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="dijiekeConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.msBsc.Xsd.DataTds.Properties.Settings.GlobalReference.Default.dijiekeConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DJK_MESSAGE_SYSTEMTableAdapter" GeneratorDataComponentClassName="DJK_MESSAGE_SYSTEMTableAdapter" Name="DJK_MESSAGE_SYSTEM" UserDataComponentName="DJK_MESSAGE_SYSTEMTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="dijiekeConnectionString (Settings)" DbObjectName="dijieke.dbo.DJK_MESSAGE_SYSTEM" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[DJK_MESSAGE_SYSTEM] WHERE (([MESSAGE_ID] = @Original_MESSAGE_ID) AND ([MESSAGE_TITLE] = @Original_MESSAGE_TITLE) AND ([MESSAGE_CONTENT] = @Original_MESSAGE_CONTENT) AND ([ACCEPT_PERSON] = @Original_ACCEPT_PERSON) AND ([ISREAD] = @Original_ISREAD) AND ([SENDR_TIME] = @Original_SENDR_TIME) AND ((@IsNull_UPDATE_TIME = 1 AND [UPDATE_TIME] IS NULL) OR ([UPDATE_TIME] = @Original_UPDATE_TIME)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MESSAGE_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MESSAGE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MESSAGE_TITLE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MESSAGE_TITLE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MESSAGE_CONTENT" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MESSAGE_CONTENT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ACCEPT_PERSON" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ACCEPT_PERSON" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ISREAD" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ISREAD" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_SENDR_TIME" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="SENDR_TIME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UPDATE_TIME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UPDATE_TIME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_UPDATE_TIME" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="UPDATE_TIME" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[DJK_MESSAGE_SYSTEM] ([MESSAGE_ID], [MESSAGE_TITLE], [MESSAGE_CONTENT], [ACCEPT_PERSON], [ISREAD], [SENDR_TIME], [UPDATE_TIME]) VALUES (@MESSAGE_ID, @MESSAGE_TITLE, @MESSAGE_CONTENT, @ACCEPT_PERSON, @ISREAD, @SENDR_TIME, @UPDATE_TIME);
SELECT MESSAGE_ID, MESSAGE_TITLE, MESSAGE_CONTENT, ACCEPT_PERSON, ISREAD, SENDR_TIME, UPDATE_TIME FROM DJK_MESSAGE_SYSTEM WHERE (MESSAGE_ID = @MESSAGE_ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MESSAGE_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MESSAGE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MESSAGE_TITLE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MESSAGE_TITLE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MESSAGE_CONTENT" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MESSAGE_CONTENT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ACCEPT_PERSON" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ACCEPT_PERSON" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ISREAD" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ISREAD" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@SENDR_TIME" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="SENDR_TIME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@UPDATE_TIME" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="UPDATE_TIME" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT MESSAGE_ID, MESSAGE_TITLE, MESSAGE_CONTENT, ACCEPT_PERSON, ISREAD, SENDR_TIME, UPDATE_TIME FROM dbo.DJK_MESSAGE_SYSTEM</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[DJK_MESSAGE_SYSTEM] SET [MESSAGE_ID] = @MESSAGE_ID, [MESSAGE_TITLE] = @MESSAGE_TITLE, [MESSAGE_CONTENT] = @MESSAGE_CONTENT, [ACCEPT_PERSON] = @ACCEPT_PERSON, [ISREAD] = @ISREAD, [SENDR_TIME] = @SENDR_TIME, [UPDATE_TIME] = @UPDATE_TIME WHERE (([MESSAGE_ID] = @Original_MESSAGE_ID) AND ([MESSAGE_TITLE] = @Original_MESSAGE_TITLE) AND ([MESSAGE_CONTENT] = @Original_MESSAGE_CONTENT) AND ([ACCEPT_PERSON] = @Original_ACCEPT_PERSON) AND ([ISREAD] = @Original_ISREAD) AND ([SENDR_TIME] = @Original_SENDR_TIME) AND ((@IsNull_UPDATE_TIME = 1 AND [UPDATE_TIME] IS NULL) OR ([UPDATE_TIME] = @Original_UPDATE_TIME)));
SELECT MESSAGE_ID, MESSAGE_TITLE, MESSAGE_CONTENT, ACCEPT_PERSON, ISREAD, SENDR_TIME, UPDATE_TIME FROM DJK_MESSAGE_SYSTEM WHERE (MESSAGE_ID = @MESSAGE_ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MESSAGE_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MESSAGE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MESSAGE_TITLE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MESSAGE_TITLE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MESSAGE_CONTENT" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MESSAGE_CONTENT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ACCEPT_PERSON" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ACCEPT_PERSON" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ISREAD" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ISREAD" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@SENDR_TIME" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="SENDR_TIME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@UPDATE_TIME" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="UPDATE_TIME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MESSAGE_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MESSAGE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MESSAGE_TITLE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MESSAGE_TITLE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MESSAGE_CONTENT" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MESSAGE_CONTENT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ACCEPT_PERSON" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ACCEPT_PERSON" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ISREAD" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ISREAD" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_SENDR_TIME" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="SENDR_TIME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UPDATE_TIME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UPDATE_TIME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_UPDATE_TIME" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="UPDATE_TIME" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="MESSAGE_ID" DataSetColumn="MESSAGE_ID" />
              <Mapping SourceColumn="MESSAGE_TITLE" DataSetColumn="MESSAGE_TITLE" />
              <Mapping SourceColumn="MESSAGE_CONTENT" DataSetColumn="MESSAGE_CONTENT" />
              <Mapping SourceColumn="ACCEPT_PERSON" DataSetColumn="ACCEPT_PERSON" />
              <Mapping SourceColumn="ISREAD" DataSetColumn="ISREAD" />
              <Mapping SourceColumn="SENDR_TIME" DataSetColumn="SENDR_TIME" />
              <Mapping SourceColumn="UPDATE_TIME" DataSetColumn="UPDATE_TIME" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="CDmDjkMessageSystem" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="CDmDjkMessageSystem" msprop:Generator_UserDSName="CDmDjkMessageSystem">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="DJK_MESSAGE_SYSTEM" msprop:Generator_TableClassName="DJK_MESSAGE_SYSTEMDataTable" msprop:Generator_TableVarName="tableDJK_MESSAGE_SYSTEM" msprop:Generator_TablePropName="DJK_MESSAGE_SYSTEM" msprop:Generator_RowDeletingName="DJK_MESSAGE_SYSTEMRowDeleting" msprop:Generator_RowChangingName="DJK_MESSAGE_SYSTEMRowChanging" msprop:Generator_RowEvHandlerName="DJK_MESSAGE_SYSTEMRowChangeEventHandler" msprop:Generator_RowDeletedName="DJK_MESSAGE_SYSTEMRowDeleted" msprop:Generator_UserTableName="DJK_MESSAGE_SYSTEM" msprop:Generator_RowChangedName="DJK_MESSAGE_SYSTEMRowChanged" msprop:Generator_RowEvArgName="DJK_MESSAGE_SYSTEMRowChangeEvent" msprop:Generator_RowClassName="DJK_MESSAGE_SYSTEMRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MESSAGE_ID" msprop:Generator_ColumnVarNameInTable="columnMESSAGE_ID" msprop:Generator_ColumnPropNameInRow="MESSAGE_ID" msprop:Generator_ColumnPropNameInTable="MESSAGE_IDColumn" msprop:Generator_UserColumnName="MESSAGE_ID">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MESSAGE_TITLE" msprop:Generator_ColumnVarNameInTable="columnMESSAGE_TITLE" msprop:Generator_ColumnPropNameInRow="MESSAGE_TITLE" msprop:Generator_ColumnPropNameInTable="MESSAGE_TITLEColumn" msprop:Generator_UserColumnName="MESSAGE_TITLE">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="300" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MESSAGE_CONTENT" msprop:Generator_ColumnVarNameInTable="columnMESSAGE_CONTENT" msprop:Generator_ColumnPropNameInRow="MESSAGE_CONTENT" msprop:Generator_ColumnPropNameInTable="MESSAGE_CONTENTColumn" msprop:Generator_UserColumnName="MESSAGE_CONTENT">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="800" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ACCEPT_PERSON" msprop:Generator_ColumnVarNameInTable="columnACCEPT_PERSON" msprop:Generator_ColumnPropNameInRow="ACCEPT_PERSON" msprop:Generator_ColumnPropNameInTable="ACCEPT_PERSONColumn" msprop:Generator_UserColumnName="ACCEPT_PERSON">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ISREAD" msprop:Generator_ColumnVarNameInTable="columnISREAD" msprop:Generator_ColumnPropNameInRow="ISREAD" msprop:Generator_ColumnPropNameInTable="ISREADColumn" msprop:Generator_UserColumnName="ISREAD" type="xs:int" />
              <xs:element name="SENDR_TIME" msprop:Generator_ColumnVarNameInTable="columnSENDR_TIME" msprop:Generator_ColumnPropNameInRow="SENDR_TIME" msprop:Generator_ColumnPropNameInTable="SENDR_TIMEColumn" msprop:Generator_UserColumnName="SENDR_TIME" type="xs:dateTime" />
              <xs:element name="UPDATE_TIME" msprop:Generator_ColumnVarNameInTable="columnUPDATE_TIME" msprop:Generator_ColumnPropNameInRow="UPDATE_TIME" msprop:Generator_ColumnPropNameInTable="UPDATE_TIMEColumn" msprop:Generator_UserColumnName="UPDATE_TIME" type="xs:dateTime" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:DJK_MESSAGE_SYSTEM" />
      <xs:field xpath="mstns:MESSAGE_ID" />
    </xs:unique>
  </xs:element>
</xs:schema>